package org.ch02.test00.demo06;

/**
 * 实体对象 - 基于反射实现一些测试操作
 * <p>
 * 修饰符 - Modifier
 *
 * @author ZQX
 * @date 2025-03-17
 */
public class Student {
    /**
     * 属性 - 字段 - Field
     */
    private String name;
    private int age;
    private Double weight;

    /**
     * 构造方法 - Construct
     */
    public Student() {
    }

    public Student(String name, int age, Double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", weight=" + weight +
                '}';
    }
}
